﻿#ifndef UILOGINDIALOG_H
#define UILOGINDIALOG_H

#include <src/GUI/uicom/uiqosdialog.h>

QT_BEGIN_NAMESPACE
namespace Ui
{
    class UiLoginDialog;
}
QT_END_NAMESPACE

/// @brief 用户登录界面
///
class UiLoginDialog: public UiQosDialog
{
    Q_OBJECT
private:
    Ui::UiLoginDialog *ui;

public:
    UiLoginDialog(QWidget *parent = nullptr);
    ~UiLoginDialog();

protected:
    bool eventFilter(QObject *watched, QEvent *event) override;

private slots:
    void onBtnLoginClicked();
    void onLoginSucceed();
    void onLoginError(int api, const QString &msg, const QJsonValue &req);
};
#endif // UILOGINDIALOG_H
